package com.xgp.company.model;

import com.xgp.company.annotaion.MyField;
import com.xgp.company.annotaion.MyTable;
import com.xgp.company.annotaion.Plan;

/**
 * 用户表
 */
@MyTable
public class User {

    //用户ID
    @MyField(plan = Plan.PK_AUTO,Comment = "这是用户id")
    private int id;

    //用户名
    @MyField(plan = Plan.NOT_NULL,len = 16,Comment = "这是用户名")
    private String username;

    //用户密码
    @MyField(plan = Plan.NOT_NULL,len = 32,Comment = "这是用户密码")
    private String password;

    //用户性别 1男 0女
    @MyField(Comment = "用户性别")
    private int sex = 1;    //性别默认为1

    //用户年龄
    @MyField(Comment = "用户年龄")
    private int age = 20;   //年龄默认为20

    //用户是否被删除
    @MyField(Comment = "用户的置废标识")
    private int is_del;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getIs_del() {
        return is_del;
    }

    public void setIs_del(int is_del) {
        this.is_del = is_del;
    }
}
